--       _________ __                 __                               
--      /   _____//  |_____________ _/  |______     ____  __ __  ______
--      \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
--      /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \ 
--     /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
--             \/                  \/          \//_____/            \/ 
--  ______________________                           ______________________
--			  T H E   W A R   B E G I N S
--	   Stratagus - A free fantasy real time strategy game engine

--      units.lua - Units
--
--      (c) Copyright 2005 by David Stone

--      This program is free software; you can redistribute it and/or modify
--      it under the terms of the GNU General Public License as published by
--      the Free Software Foundation; either version 2 of the License, or
--      (at your option) any later version.
--  
--      This program is distributed in the hope that it will be useful,
--      but WITHOUT ANY WARRANTY; without even the implied warranty of
--      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--      GNU General Public License for more details.
--  
--      You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------

HP = 60
damage = 6
speed = 5

DefineUnitType("unit-sub", { Name = "Submarine",
	Image = {"file", "sub.png", "size", {128, 128}},
	Animations = "animations-sub", Icon = "icon-sub",
	Costs = {"time", speed, "ipc", 8},
	HitPoints = HP,
	DrawLevel = 2,
	TileSize = {1, 1}, BoxSize = {64, 64},
	SightRange = 5, ComputerReactionRange = 7, PersonReactionRange = 7,
	Armor = 2, BasicDamage = damage, PiercingDamage = 2, Missile = "missile-none",
	MaxAttackRange = 5,
	Demand = 0,
	Priority = 100,  Points = 500,
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetSea = true,
	CanCastSpell = {"spell-submerge"},
	SeaUnit = true,
	Type = "naval",
	SelectableByRectangle = true} )
	
DefineUnitType("unit-sub-submerged", { Name = "Submarine",
	Image = {"file", "submerged.png", "size", {128, 128}},
	Animations = "animations-sub", Icon = "icon-sub",
	Costs = {"time", 5},
	HitPoints = HP,
	DrawLevel = 2,
	TileSize = {1, 1}, BoxSize = {64, 64},
	SightRange = 5, ComputerReactionRange = 6, PersonReactionRange = 6,
	Armor = 2, BasicDamage = damage, PiercingDamage = 2, Missile = "missile-none",
	MaxAttackRange = 5,
	Demand = 0,
	Priority = 100,  Points = 500,
	RightMouseAction = "move",
	CanAttack = false,
	CanCastSpell = {"spell-merge"},
	SeaUnit = true,
	Type = "naval",
	PermanentCloak = true,
	SelectableByRectangle = true} )
	
DefineUnitType("unit-transport", { Name = "Transport",
	Image = {"file", "Transport.png", "size", {128, 128}},
	Animations = "animations-boat", Icon = "icon-transport",
	Costs = {"time", speed, "ipc", 8},
	HitPoints = HP,
	DrawLevel = 2,
	TileSize = {1, 1}, BoxSize = {64, 64},
	SightRange = 5, ComputerReactionRange = 5, PersonReactionRange = 5,
	Armor = 1, BasicDamage = damage, PiercingDamage = 0, Missile = "missile-none",
	MaxAttackRange = 1,
	Demand = 0,
	Priority = 100,  Points = 500,
	RightMouseAction = "move",
	CanAttack = false,
	CanTargetLand = false,
	CanTransport = {LandUnit, "only"},
	MaxOnBoard = 2,
	SeaUnit = true,
	Type = "naval",
	SelectableByRectangle = true} )
	
DefineUnitType("unit-tank", { Name = "Armor",
	Image = {"file", "tank.png", "size", {100,100}},
	Animations = "animations-tank", Icon = "icon-tank",
	Costs = {"time", speed, "ipc", 5},
	HitPoints = HP,
	DrawLevel = 2,
	TileSize = {1, 1}, BoxSize = {50, 50},
	SightRange = 5, ComputerReactionRange = 7, PersonReactionRange = 7,
	Armor = 2, BasicDamage = damage, PiercingDamage = 3, Missile = "missile-none",
	attack = 3,
	MaxAttackRange = 5,
	RepairRange = 1,
	AutoRepairRange = 3,	
	Priority = 5000,
	Points = 5,
	Type = "land",
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
	LandUnit = true,
	CanCastSpell = {"spell-capture"},
	SelectableByRectangle = true,
	CanTargetFlag = {"capture", "false"},
	AutoCastActive = {"spell-capture"}
} )
	
DefineUnitType("unit-ic", { Name = "Industrial Complex",
	Image = {"file", "ic.png", "size", {128,128}},
	Animations = "animations-building", Icon = "icon-ic",
	Construction = "construction-ic",
	Costs = {"time", speed, "ipc", 15},
	RepairHp = 4, RepairCosts = {},
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {2, 2}, BoxSize = {72, 72},
	SightRange = 5,
	Armor = 1, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 22,
	Type = "land",
	capture = true,
	GivesResource = "ipc",
	UnlimitedResources = true,
	RepairRange = 2,
	CanHarvest = true,
	Coward = true,
	Building = true, VisibleUnderFog = true,
	BuilderOutside = true, 
	BuildingRules = {{"distance", {Distance = 1, DistanceType = "<=",Type = "unit-one"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-two"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-three"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-four"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-five"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-six"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-seven"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-eight"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-nine"}},
					 {"distance", {Distance = 1, DistanceType = "<=", Type = "unit-ten"}},
					 {"distance", {Distance = 1, DistanceType = "<=",Type = "unit-eleven"}},
					 {"distance", {Distance = 1, DistanceType = "<=", Type = "unit-twelve"}},
					 {"distance", {Distance = 1, DistanceType = "<=", Type = "unit-thirteen"}},
					 {"distance", {Distance = 1, DistanceType = "<=", Type = "unit-fourteen"}},
					 {"distance", {Distance = 1, DistanceType = "<=", Type = "unit-fifteen"}} } } ) 
	
DefineUnitType("unit-inf", { Name = "Infantry",
	Image = {"file", "inf.png", "size", {42,51}},
	Animations = "animations-inf", Icon = "icon-inf",
	Costs = {"time", speed, "ipc", 3},
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {42, 51},
	SightRange = 7, ComputerReactionRange = 6, PersonReactionRange = 6,
	Armor = 2, BasicDamage = damage, PiercingDamage = 1, Missile = "missile-none",
	MaxAttackRange = 5,
	RepairRange = 1,
	AutoRepairRange = 3,
	Level = 1,
	Priority = 5,
	Points = 3,
	Type = "land",
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
	LandUnit = true,
	CanCastSpell = {"spell-capture", "spell-digin"},
	SelectableByRectangle = true,
	CanTargetFlag = {"capture", "false"},
	AutoCastActive = {"spell-capture"},
	Sounds = {
		"dead", "inf die"}	} )
		
DefineUnitType("unit-inf2", { Name = "Infantry",
	Image = {"file", "inf2.png", "size", {58,52}},
	Animations = "animations-inf", Icon = "icon-inf",
	Costs = {"time", speed, "ipc", 3},
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {58, 52},
	SightRange = 7, ComputerReactionRange = 6, PersonReactionRange = 6,
	Armor = 2, BasicDamage = damage, PiercingDamage = 1, Missile = "missile-none",
	MaxAttackRange = 5,
	RepairRange = 1,
	AutoRepairRange = 3,
	Level = 1,
	Priority = 5,
	Points = 3,
	Type = "land",
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
	LandUnit = true,
	CanCastSpell = {"spell-capture", "spell-digin"},
	SelectableByRectangle = true,
	CanTargetFlag = {"capture", "false"},
	AutoCastActive = {"spell-capture"},
	Sounds = {
		"dead", "inf die"}	} )
		
DefineUnitType("unit-inf-dug", { Name = "Infantry dugin",
	Image = {"file", "inf.png", "size", {80,80}},
	Animations = "animations-inf-dug", Icon = "icon-inf",
	Costs = {"time", 30},
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {32, 32},
	SightRange = 7, ComputerReactionRange = 8, PersonReactionRange = 8,
	Armor = 2, BasicDamage = damage, PiercingDamage = 2, Missile = "missile-none",
	MaxAttackRange = 7,
	RepairRange = 1,
	AutoRepairRange = 3,
	Level = 1,
	Priority = 5,
	Points = 3,
	Type = "land",
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
	LandUnit = true,
	CanCastSpell = {"spell-digout"},
	SelectableByRectangle = true,
	CanTargetFlag = {"capture", "false"},
	Sounds = {
		"dead", "inf die"}	} )
		
DefineUnitType("unit-fighter", { Name = "Fighter",
	Image = {"file", "fighter.png", "size", {72,72}},
	Animations = "animations-fighter", Icon = "icon-fighter",
	Costs = {"time", speed, "ipc", 12},
	HitPoints = HP,
	DrawLevel = 40,
	TileSize = {1, 1}, BoxSize = {36, 36},
	SightRange = 10, ComputerReactionRange = 6, PersonReactionRange = 6,
	Armor = 4, BasicDamage = damage, PiercingDamage = 3, Missile = "missile-none",
	MaxAttackRange = 5,
	Priority = 5,
	Points = 12,
	Type = "fly",
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
	AirUnit = true,
	CanGatherResources = {{"resource-id", "gas", "resource-capacity", 50, "harvest-from-outside"}},
	Fuel = "gas",
	CarryResource = 50,
	RandomMovementProbability = 1,
	fighter = true,
	SelectableByRectangle = true,
	CanTargetFlag = {"capture", "false"} } )
	
DefineUnitType("unit-bomber", { Name = "Bomber",
	Image = {"file", "bomber.png", "size", {100,100}},
	Animations = "animations-bomber", Icon = "icon-bomber",
	Costs = {"time", speed, "ipc", 15},
	HitPoints = HP,
	DrawLevel = 41,
	TileSize = {1, 1}, BoxSize = {50, 50},
	SightRange = 7, ComputerReactionRange = 6, PersonReactionRange = 6,
	Armor = 1, BasicDamage = damage, PiercingDamage = 5, Missile = "missile-none",
	MaxAttackRange = 6,
	Priority = 5,
	Points = 15,
	Type = "fly",
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetLand = true, CanTargetSea = true,
	AirUnit = true,
	CanGatherResources = {{"resource-id", "gas", "resource-capacity", 75, "harvest-from-outside"}},
	Fuel = "gas",
	CarryResource = 75,
	RandomMovementProbability = 1,
	SelectableByRectangle = true,
	CanTargetFlag = {"capture", "false"} } ) 
	
	
DefineUnitType("unit-battleship", { Name = "Battleship",
	Image = {"file", "battleship.png", "size", {150, 150}},
	Animations = "animations-battleship", Icon = "icon-battleship",
	Costs = {"time", speed, "ipc", 24},
	HitPoints = HP,
	DrawLevel = 20,
	TileSize = {1, 1}, BoxSize = {75, 75},
	SightRange = 5, ComputerReactionRange = 8, PersonReactionRange = 8,
	Armor = 4, BasicDamage = damage, PiercingDamage = 4, Missile = "missile-none",
	MaxAttackRange = 7,
	Priority = 100, 
	Points = 24,
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
	SeaUnit = true,
	Type = "naval",
	SelectableByRectangle = true,
	CanTargetFlag = {"capture", "false"} } )
	
DefineUnitType("unit-carrier", { Name = "Aircraft Carrier",
	Image = {"file", "aircraftcarrier.png",	"size", {150, 150}},
	Animations = "animations-carrier", Icon = "icon-carrier",
	Costs = {"time", speed, "ipc", 18},
	HitPoints = HP,
	DrawLevel = 18,
	TileSize = {1, 1}, BoxSize = {75, 75},
	SightRange = 5, ComputerReactionRange = 5, PersonReactionRange = 5,
	Armor = 3, BasicDamage = damage, PiercingDamage = 1, Missile = "missile-none",
	MaxAttackRange = 5,
	Priority = 100,  Points = 18,
	RightMouseAction = "move",
	CanAttack = true,
	CanTargetLand = false, CanTargetSea = true, CanTargetAir = true,
	SeaUnit = true,
	Type = "naval",
	GivesResource = "gas",
	UnlimitedResources = true,
	CanHarvest = true,
	SelectableByRectangle = true,
	CanTargetFlag = {"capture", "false"} } )
	
DefineUnitType("unit-aa", { Name = "AntiAircraft",
	Image = {"file", "aa.png", "size", {64,64}},
	Animations = "animations-aa", Icon = "icon-aa",
	Costs = {"time", speed, "ipc", 5},
	Construction = "construction-aa",
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {32, 32},
	SightRange = 10, ComputerReactionRange = 8, PersonReactionRange = 8,
	Armor = 0, BasicDamage = damage, PiercingDamage = 1, Missile = "missile-none",
	MaxAttackRange = 8,
	Priority = 5,
	Points = 5,
	Demand = 0,
	Type = "land",
	RightMouseAction = "attack",
	CanAttack = true,
	CanTargetAir = true,
	Building = true,
	capture = true,
	BuilderOutside = true,
	LandUnit = true,
	SelectableByRectangle = false,
	BuildingRules = {{"addon", {OffsetX = 2, Type = "unit-ic"}}}})

DefineUnitType("unit-one", { Name = "Territory (1 IPC)",
	Image = {"file", "one.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 1,
	RepairRange = 1,
	Decoration = ture,
	RightMouseAction = "none",
	capture = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	RepairRange = 5,
	CanHarvest = true,
	Coward = true,
	Building = true,
	VisibleUnderFog = true } )
	
DefineUnitType("unit-two", { Name = "Territory (2 IPC)",
	Image = {"file", "two.png", "size", {32, 32}},	
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	RepairHp = 4, RepairCosts = {},
	Type = "land",
	Supply = 2,
	Decoration = ture,
	capture = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	CanHarvest = true,
	Coward = true,
	RepairRange = 1,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-three", { Name = "Territory (3 IPC)",
	Image = {"file", "three.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {31, 31},
	RepairHp = 4, RepairCosts = {},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 3,
	Decoration = ture,
	capture = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	RepairRange = 1,
	Coward = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )

DefineUnitType("unit-four", { Name = "Territory (4 IPC)",
	Image = {"file", "four.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	RepairHp = 4, RepairCosts = {},
	Supply = 4,
	Decoration = ture,
	capture = true,
	GivesResource = "gas",
	Coward = true,
	UnlimitedResources = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-five", { Name = "Territory (5 IPC)",
	Image = {"file", "five.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	RepairHp = 4, RepairCosts = {},
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 5,
	Decoration = ture,
	capture = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	Coward = true,
	RepairRange = 1,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-six", { Name = "Territory (6 IPC)",
	Image = {"file", "six.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	RepairHp = 4, RepairCosts = {},
	Type = "land",
	Supply = 6,
	RepairRange = 1,
	Decoration = ture,
	GivesResource = "gas",
	UnlimitedResources = true,
	CanHarvest = true,
	Coward = true,
	capture = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-seven", { Name = "Territory (7 IPC)",
	Image = {"file", "seven.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 7,
	RepairHp = 4, RepairCosts = {},
	Decoration = ture,
	capture = true,
	Coward = true,
	RepairRange = 1,
	GivesResource = "gas",
	UnlimitedResources = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )

DefineUnitType("unit-eight", { Name = "Territory (8 IPC)",
	Image = {"file", "eight.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 8,
	Decoration = ture,
	capture = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	RepairRange = 1,
	Coward = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-nine", { Name = "Territory (9 IPC)",
	Image = {"file", "nine.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 9,
	Decoration = ture,
	capture = true,
	RepairRange = 1,
	GivesResource = "gas",
	UnlimitedResources = true,
	Coward = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-ten", { Name = "Territory (10 IPC)",
	Image = {"file", "ten.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 10,
	Decoration = ture,
	capture = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	RepairRange = 1,
	Coward = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-eleven", { Name = "Territory (11 IPC)",
	Image = {"file", "eleven.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 11,
	Decoration = ture,
	Coward = true,
	capture = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	RepairRange = 1,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-twelve", { Name = "Territory (12 IPC)",
	Image = {"file", "twelve.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 12,
	Decoration = ture,
	capture = true,
	Coward = true,
	GivesResource = "gas",
	RepairRange = 1,
	UnlimitedResources = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-thirteen", { Name = "Territory (13 IPC)",
	Image = {"file", "thirteen.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 13,
	Decoration = ture,
	capture = true,
	Coward = true,
	RepairRange = 1,
	GivesResource = "gas",
	UnlimitedResources = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-fourteen", { Name = "Territory (14 IPC)",
	Image = {"file", "fourteen.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 14,
	Decoration = ture,
	RepairRange = 1,
	capture = true,
	Coward = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )
	
DefineUnitType("unit-fifteen", { Name = "Territory (15 IPC)",
	Image = {"file", "fifteen.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 10,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 15,
	Decoration = ture,
	capture = true,
	RepairRange = 1,
	Coward = true,
	GivesResource = "gas",
	UnlimitedResources = true,
	CanHarvest = true,
	Building = true, VisibleUnderFog = true } )

DefineUnitType("unit-start-location", { Name = "Territory (15 IPC)",
	Image = {"file", "one.png", "size", {32, 32}},
	Animations = "animations-building", Icon = "icon-cancel",
	HitPoints = HP,
	DrawLevel = 1,
	RepairHp = 4, RepairCosts = {},
	TileSize = {1, 1}, BoxSize = {31, 31},
	SightRange = 2,
	BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
	Priority = 0,
	Type = "land",
	Supply = 15,
	Decoration = ture,
	capture = true,
	Building = true, VisibleUnderFog = true } )


print("Loaded units and animations\n")
